import $api from '@/utils/api.js'
export default async function(imageUrl) {
	return new Promise((reslove, reject) => {
		let image = ''
		uni.request({
			url: imageUrl,
			responseType: 'arraybuffer',
			success: function (res) {
				image = uni.arrayBufferToBase64(res.data);
				reslove(image)
			},
			fail: function (err) {
				reject(err)
			}
		})
	})
}
